.test{
    counter-reset: testing;
}
h2{
    counter-increment: testing;
}
h2::before{
    content: counter(testing);
}
/* 会在父元素（.test）下创建一个数据testing,可以计数 */